package com.parking.mgr.useraccount.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.parking.mgr.useraccount.model.entity.LoginPasswordEntity;
import com.parking.mgr.useraccount.model.param.ChangePasswordParam;
import com.parking.mgr.useraccount.model.param.ChangePasswordSelfParam;
import com.parking.mgr.useraccount.model.param.LoginPasswordParam;
import com.parking.mgr.useraccount.model.param.LoginPasswordSelfParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName LoginPasswordService
 * @Description 用户登录密码
 * @Auther: zhijianpu
 * @Date: 2023/5/25
 */
public interface LoginPasswordService extends IService<LoginPasswordEntity> {

    /**
     * 增加登录用户密码
     *
     * @param loginPasswordSelfParam
     */
    void addPasswordSelf(LoginPasswordSelfParam loginPasswordSelfParam, HttpServletRequest request);

    /**
     * 增加用户密码
     *
     * @param loginPasswordParam
     * @param request
     */
    void addPassword(LoginPasswordParam loginPasswordParam, HttpServletRequest request);

    /**
     * 更改登录用户密码
     *
     * @param changePasswordSelfParam
     */
    void changePasswordSelf(ChangePasswordSelfParam changePasswordSelfParam, HttpServletRequest request);

    /**
     * 更改用户密码
     *
     * @param changePasswordParam
     * @param request
     */
    void changePassword(ChangePasswordParam changePasswordParam, HttpServletRequest request);

    /**
     * 根据用户账号删除用户密码
     *
     * @param passportId
     */
    void deletePasswordByPassportId(String passportId);

    void savePwd(String password, String passportId);
}
